import request from '@/utils/request'

const api = {
    qbgl: '/lcsz/lcsx'
}

export function getInfo(unid) {
    return request({
        url: api.qbgl + '/' + unid,
        method: 'get'
    })
}

export function getList(parameter) {
    return request({
        url: api.qbgl + '/list',
        method: 'get',
        params: parameter
    })
}

export function saveInfo(parameter) {
    return request({
        url: api.qbgl,
        method: 'post',
        data: parameter,
        headers: {
            'Content-Type': 'application/json;charset=UTF-8'
        }
    })
}

export function delInfo(parameter) {
    return request({
        url: api.qbgl,
        method: 'Delete',
        params: parameter
    })
}